package org.onepiece.admin.common.utils;

import java.util.Objects;

/**
 * Created by IntelliJ IDEA.
 *
 * @author zhujianke@gaodun.com
 * @since 2023/4/12 15:03
 */
public class Singleton {

    private Singleton() {

    }
    private volatile static Singleton SINGLETON = null;

    public static Singleton getInstance() {
        synchronized (Singleton.class) {
            if (null == SINGLETON) {
                SINGLETON = new Singleton();
            }
        }
        return SINGLETON;
    }

}
